package com.xc.tjise.TJISE.day06;

import java.util.Vector;

public class VectorTest {//向量  类似于动态的数组
    public static void main(String[] args) {
        Vector<String> vector=new Vector();
        vector.add("hi1");
        vector.add("hi2");
        vector.add("hi3");
        vector.add("hi4");

        vector.remove("hi3");
        vector.remove(1);

        System.out.println(vector.get(0));
        for (String s:vector){
            System.out.println(s);
        }

       /* vector clear
        vector.remove("hi3");
        vector.remove(2);
       */
        System.out.println(vector.size());
        System.out.println(vector.capacity());

      /*  Vector<Integer> integers= */
    }
}
